chore: colocate tree-sitter-requirements.wasm to resolve issues when bundled with webpack#410
Conversation
Review Summary by QodoColocate tree-sitter-requirements.wasm for webpack compatibility
WalkthroughsDescription• Colocate tree-sitter-requirements.wasm file to resolve webpack bundling issues • Change from file path resolution to URL-based approach for WASM loading • Add build scripts to copy WASM file to source and distribution directories • Load WASM as binary bytes instead of file path reference Diagramflowchart LR
A["tree-sitter-requirements.wasm<br/>in node_modules"] -->|"pretest script"| B["Copy to src/providers/"]
A -->|"postcompile script"| C["Copy to dist/src/providers/"]
D["requirements_parser.js<br/>uses URL-based loading"] -->|"reads WASM bytes"| B
D -->|"at runtime"| C
File Changes1. src/providers/requirements_parser.js
|
Code Review by Qodo
1. Tests miss WASM copy
|
…bundled with webpack
d38c078 to
892de52
Compare
Description
Fourth times the charm? This time I definitely didnt forget to test with
vsceChecklist